package com.zmzncs.lmtc.module.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmzncs.lmtc.common.pojo.AuthorizeVO;
import com.zmzncs.lmtc.common.pojo.Rest;
import com.zmzncs.lmtc.module.customer.pojo.card.CardDTO;
import com.zmzncs.lmtc.module.customer.pojo.customer.Customer;
import com.zmzncs.lmtc.module.customer.pojo.customer.CustomerDTO;
import com.zmzncs.lmtc.module.customer.pojo.customer.CustomerForm;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 客户-客户信息 服务类
 * </p>
 *
 * @author 任建波
 * @since 2020-08-26
 */
public interface CustomerService extends IService<Customer> {

    /**会员详情*/
    CustomerDTO getCustomerInfo();
    /**微信授权*/
    AuthorizeVO authorize(CustomerForm customerForm);
    /**获取客户月租服务*/
    List<CardDTO> getCustomerMonthCardList();
    /**获取客户时长服务*/
    List<CardDTO> getCustomerDurationCard();
    /**获取客户余额*/
    CardDTO getRechargeCard();
    /**客户授权绑定手机号*/
    String bindMobilePhone(String code, String encryptedData, String iv);

    /**向用户转账*/
    String transfersToUser(String orderCode,String openid, BigDecimal totalFee, String desc);

}
